<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>layui.form小例子</title>
  <link rel="stylesheet" type="text/css" href="./jquery/easyui.css">
  <link rel="stylesheet" type="text/css" href="./jquery//icon.css">
  <link rel="stylesheet" type="text/css" href="./jquery/demo.css">
  <script type="text/javascript" src="./jquery/jquery.min.js"></script>
  <script type="text/javascript" src="./jquery/jquery.easyui.min.js"></script>
  <script type="text/javascript" src="./jquery/echarts.common.min.js"></script>

</head>
<body>

<!--<div style="margin:20px 0"></div>-->
<!--<select id="cc" style="width:150px"></select>-->
<!--<div id="sp" style="height: 200px">-->
  <!--<div style="color:#99BBE8;background:#fafafa;padding:5px;">选择你想看的</div>-->
  <!--<div style="padding:10px">-->
    <!--<input type="checkbox" name="lang" value="01"><span>超市</span><br/>-->
    <!--<input type="checkbox" name="lang" value="02"><span>商场</span><br/>-->
    <!--<input type="checkbox" name="lang" value="03"><span>农贸市场</span><br/>-->
    <!--<input type="checkbox" name="lang" value="04"><span>公交站</span><br/>-->
    <!--<input type="checkbox" name="lang" value="05"><span>地铁站</span>-->
  <!--</div>-->
<!--</div>-->
<script type="text/javascript">

var aa="超市,农贸市场"
var ss= aa.split(',');
var tt=["12345","23456"]
var jsonArray= []
for(var i = 0;i<ss.length;i++){
    var json ={}

    for(var j=0;j<tt.length;j++){
        if(i==j){
            json.name = ss[i];
            json.value = tt[j];
            jsonArray.push(json)
        }
    }
}


  console.log(jsonArray)
var  mm=[]
for (var j=0;j<jsonArray.length;j++){
    for(var i in jsonArray[j]){
        if (i == 'name'){
            mm.push(jsonArray[j].name+':'+jsonArray[j].value)
        }
    }
}

console.log(mm)





</script>
</body>
</html>